package com.bltec.emergency.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

@Controller
public class SystemController {

    @RequestMapping(value = {"/toLogin", "/login"})
    public String toLogin() {
        return "login";
    }

    @RequestMapping("/main")//首页
    public String main() {
        return "pages/main";
    }

    /*应急机构*/
    @RequestMapping("/org")
    public String org() {
        return "pages/org/org";
    }

    /*应急预案*/
    @RequestMapping("/plan")
    public String plan() {
        return "pages/plan/plan";
    }

    /*统计查询*/
    @RequestMapping("/statistics")
    public String statistics() {
        return "pages/statistics/statistics";
    }

    @RequestMapping("/res_statistics")//资源统计
    public String res_statistics() {
        return "pages/statistics/res_statistics";
    }

    @RequestMapping("/response_statistics") //响应能力统计
    public String response_statistics() {
        return "pages/statistics/response_statistics";
    }

    /*地图平台*/
    @RequestMapping("/maps")
    public String maps() {
        return "pages/maps/maps";
    }

    /*对外救助*/
    @RequestMapping("/foreign")
    public String foreign() {
        return "pages/foreign/foreign";
    }

    @RequestMapping("/foreign_main")//主要信息
    public String foreignMain() {
        return "pages/foreign/foreign_main";
    }

    @RequestMapping("/foreign_base")//基本信息
    public String foreignBase() {
        return "pages/foreign/foreign_base";
    }

    @RequestMapping("/foreign_vessel_number")//搜救船次
    public String foreignVesselNumber() {
        return "pages/foreign/foreign_vessel_number";
    }

    @RequestMapping("/foreign_sorties")//搜救架次
    public String foreignSorties() {
        return "pages/foreign/foreign_sorties";
    }

    /*法律法规*/
    @RequestMapping("/laws")
    public String laws() {
        return "pages/laws/laws";
    }


    /*应急物资*/
    @RequestMapping("/res")//应急物资
    public String res() {
        return "pages/res/res";
    }

    @RequestMapping("/res_expert")//专家
    public String res_expert() {
        return "pages/res/res_expert";
    }

    @RequestMapping("/res_team")//队伍
    public String res_team() {
        return "pages/res/res_team";
    }

    @RequestMapping("/res_supplies")//物资
    public String res_supplies() {
        return "pages/res/res_supplies";
    }

    @RequestMapping("/res_ship")//船舶
    public String res_ship() {
        return "pages/res/res_ship";
    }

    @RequestMapping("/res_helicopter")//直升飞机
    public String res_helicopter() {
        return "pages/res/res_helicopter";
    }

    @RequestMapping("/res_external_res")//外部物资
    public String res_external_res() {
        return "pages/res/res_external_res";
    }

    /*应急记录*/
    @RequestMapping("/record")//应急记录
    public String record() {
        return "pages/record/record";
    }

    @RequestMapping("/record_exercise")//演习
    public String record_exercise() {
        return "pages/record/record_exercise";
    }

    @RequestMapping("/record_train")//培训
    public String record_train() {
        return "pages/record/record_train";
    }

    @RequestMapping("/record_response")//响应
    public String record_response() {
        return "pages/record/record_response";
    }

    @RequestMapping("/record_disaster")//灾害
    public String record_disaster() {
        return "pages/record/record_disaster";
    }


    /*系统设置*/
    @RequestMapping("/system")
    public String system() {
        return "pages/mgr/system";
    }

    @RequestMapping("/user")//用户
    public String user() {
        return "pages/mgr/user";
    }

    @RequestMapping("/permission")//权限
    public String permission() {
        return "pages/mgr/permission";
    }

    @RequestMapping("/roles")//角色
    public String roles() {
        return "pages/mgr/roles";
    }

    @RequestMapping("/department")//组织机构
    public String department() {
        return "pages/mgr/department";
    }

    @RequestMapping("/logInfo")//登录记录
    public String logInfo() {
        return "pages/mgr/logInfo";
    }

    @RequestMapping("/operate")//操作记录
    public String operate() {
        return "pages/mgr/operate";
    }

    //未授权页面
    @RequestMapping("/unAuthorize")
    public String unAuthorize() {
        return "pages/unAuthorize";
    }

    //未授权页面
    @RequestMapping("/backup")
    public String runBackup() {
        return "pages/backup";
    }
    /*
     * 首页
     * */
    @RequestMapping("/index")
    public String toIndex() {
        return "index";
    }

    @RequestMapping("/")
    public String index() {
        return "index";
    }
}
